package org.lgh.webchatback.netty;

import io.netty.channel.Channel;

import java.util.HashMap;

/**
 * @author wei-xhh
 * @date 2022-02-09
 * 用户id和channel的关联关系处理
 */
public class UserChannelRel {
    private static HashMap<String, Channel> manage = new HashMap<>();
    public static void put(String senderId, Channel channel) {
        manage.put(senderId, channel);
    }
    public static Channel get(String senderId) {
        return manage.get(senderId);
    }
}
